<template>
    <el-row class="productattributedetail">
        <el-col :span="24" class="content-header">
            商品属性配置--详情
            <span class="left-10">
                <el-button type="text" @click="global.goPage($router, 'productattribute', {});">返回</el-button>
            </span>
        </el-col>
        <el-card class="box">
            <el-row>
                <el-col :span="18" :offset="1">
                    <el-form :model="attrDateForm" label-width="150px" :label-position="labelPosition">
                        <el-form-item label="产品类别：">
                            <el-input v-model="attrDateForm.category" disabled></el-input>
                        </el-form-item>
                        <el-form-item label="主属性名称：">
                            <el-input v-model="attrDateForm.attrName" disabled></el-input>
                        </el-form-item>
                        <el-form-item label="主属性显示顺序：">
                            <el-input v-model="attrDateForm.attrOrder" disabled></el-input>
                        </el-form-item>
                        <el-row class="childreninput">
                            <el-col :span="24" v-for="(item, index) in attrDateForm.childrenAttr" :item="item" :key="item.name" :index="index">
                                <el-col :span="12">
                                    <el-form-item label="子属性名称："  >
                                        <el-input v-model="item.name" disabled></el-input>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="11" :offset="1">
                                    <el-form-item label="子属性显示顺序：">
                                        <el-input v-model="item.order" disabled></el-input>
                                    </el-form-item>
                                </el-col>
                            </el-col>
                        </el-row>
                    </el-form>
                </el-col>
            </el-row>
        </el-card>
    </el-row>
</template>
<script>
import './detail.scss';
import router from '@/router/index';

export default {
    data() {
        return {
            labelPosition : this.global.labelPosition,
            attrDateForm : {
                category : "123",
                attrName : "123",
                attrOrder : "1",
                childrenAttr : [{
                    name : "1",
                    order : "1"
                },{
                    name : "2",
                    order : "2"
                }
                ]
            }
        }
    },
    methods: {

    },
    watch: {

    },
    mounted: function() {

    },
    created: function() {
         
    },
    beforeDestroy: function() {

    }
}
</script>